<?
require("config.php");

$show_backnav = "menu";
$location_status .= "| Enquire";


$menutype = 2;

if (NULL!=$action){

   $Query = "delete from $table where id=$id Limit 1";

   myQuery($Query);


   header("location:" . $rela_path . "share/msg.php?v=743");

   exit();

}


if (!checkRecord($table,$id)){

	header("location:" . $rela_path . "share/msg.php?v=9002");
  
}

$Query = "select 
	code,
	course,
	schedule,
	graduate,
	detail,
	status, showcase, picture1
from $table where id='$id' Limit 1";
$r = myQuery($Query);


	$Code=$r[0][0];
	$Course=$r[0][1];
	$Schedule=$r[0][2];
	$Graduate=$r[0][3];
	$Detail=$r[0][4];
	$Status=$r[0][5];
	$showcase=$r[0][6];
$Picture=$r[0][7];
require($rela_path . "inc/header.php");
require($rela_path . "bin/date.php");
?>

<!--Content Start-->
<form action="" method="post" enctype="multipart/form-data" name="form1">  
<!--hidden filed-->
<input name="id" type="hidden" value="<?print($id)?>">
<input name="action" type="hidden" value="delete">

  <table width="95%" border="0" align="center">
                      <tr> 
                        
      <td>&nbsp; </td>
                      </tr>
                      <tr> 
                        
      <td>
        <br>
        <table border="0">




          <tr> 
            <td class="tdheader">Course :</td>
            <td>

<?=$Course?>			  </td>
          </tr>



          <tr> 
            <td class="tdheader">Schedule :</td>
            <td>

<?=$Schedule?>			  </td>
          </tr>







          <tr> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td class="tdheader">Showcase:</td>
            <td>
              <?
if ($showcase==0) echo "No";
if ($showcase==1) echo "Yes";
?>            </td>
          </tr>
          <tr> 
            <td class="tdheader">Code :</td>
            <td> <?print($Code)?> </td>
          </tr>

          <tr> 
            <td class="tdheader">Graduate :</td>
            <td><?=$Graduate?></td>
          </tr>
          <tr> 
            <td class="tdheader">Sharing Detail :</td>
            <td><?=$Detail?></td>
          </tr>
          <tr> 
            <td valign="top" class="tdheader">Publish :</td>
            <td> 
			
              <?=$Status?>            </td> 			  
          </tr>	
          <tr>
            <td class="tdheader">Picture : </td>
            <td><?loadImage2($Picture,$rela_path . $PIC_DIR. $table . "/")?></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>

</form>
<!--Content End-->
<?require($rela_path . "inc/footer.php");?>
        